package com.htht.job.admin.controller.appinterface;

/**
 * Created by zzj on 2018/3/13.
 */
import io.swagger.annotations.*;
import org.springframework.data.redis.listener.Topic;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping(value = "/v1/api")
@Api(value="用户controller",description="用户相关操作")
public class demo {

    @RequestMapping(value="index",method=RequestMethod.POST)
    //方法上使用@ApiOperation
    @ApiOperation(value="首页",notes="跳转到首页")
    //参数使用@ApiParam
    public Object getIndex(@ApiParam(name="topic实体",value="json格式",required=true) @RequestBody Topic topic){
        //业务内容，被我删除了，请忽略，主要看上面的注解
        Object obj = new Object();
        return obj;
    }
}